----------------------------
initial deposit date: 10/02/2023
this version: 15/05/2023
-----------------------------
article: "Trading Liberties: Estimating Covid policy preferences from conjoint data"
authors: 
 - Felix Hartmann, Humboldt (f.hartmann@hu-berlin.de)
 - Macartan Humphreys, WZB and Columbia University (macartan.humphreys@wzb.eu)
 - Ferdinand Geißler, Humboldt (ferdinand.geissler@hu-berlin.de)
 - Heike Klüver, Humboldt (heike.kluever@hu-berlin.de)
 - Johannes Giesecke, Humboldt (johannes.giesecke@hu-berlin.de)

-----------------------------
Replication code and data needed to reproduce results presented in-text and in the Supplemental Information provided for the study. 

-----------------------------
# code overview
- "0_master.Rmd" R markdown script produces all the numeric results, tables, and figures in the main text and in the supplementary information

-----------------------------
# files:
- "data" contains all data needed for replication
- "code" contains all functions needed for replication
- "results" contains numeric results, tables, and figures 


- "data/df_long_rep_export.rds" -- data for the conjoint experiment
- "data/vars.xls" -- data that containts covairate information and transformations
- "data/W4_exp7_vignettes_universe_-_20210831.dta" -- data that contains vignettes

- "data/7di-rl-by-ags.csv" -- data that contains 7 day incidence in the weeks before the study 
	+ source: https://github.com/jgehrcke/covid-19-germany-gae

- "data/sociodemographics_destatis_age.xlsx" -- data on sociodemographic (age) from the German Statistical Office
- "data/sociodemographics_destatis_gender.xlsx" -- data on sociodemographic (gender) from the German Statistical Office
- "data/sociodemographics_destatis_region.xlsx" -- data on sociodemographic (region) from the German Statistical Office
	+ source: https://www.regionalstatistik.de/genesis/online/; values are always taken for 2021

- "code/functions.R" --  cjEuclid functions 

-----------------------------
# environment
- R version 4.1.1
- Platform: x86_64-apple-darwin17.0 (64-bit)
- Running under: macOS Monterey 12.0.1

-----------------------------
# package versions:
- tidycat_0.1.2       
- forcats_0.5.2       
- stringr_1.5.0       
- purrr_1.0.0        
- readr_2.1.3         
- tidyr_1.2.1         
- tibble_3.1.8        
- tidyverse_1.3.2    
- texreg_1.38.6       
- labelled_2.10.0     
- knitr_1.41          
- kableExtra_1.3.4   
- fBasics_4021.93     
- dplyr_1.0.10        
- estimatr_1.0.0      
- broom.helpers_1.9.0
- curl_5.0.0          
- gtrendsR_1.5.1      
- ggpubr_0.5.0        
- ggplot2_3.4.0      
- haven_2.5.1         
- readxl_1.4.1        
- modelsummary_1.1.0  
- gridExtra_2.3      
- lfe_2.8-8           
- Matrix_1.3-4        
- formula.tools_1.7.1 
- fixest_0.11.0      
- pacman_0.5.1  

-----------------------------
# running time 
- For "0_master.Rmd", about 5 min in total